package com.soccernews.main;

import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;

import org.xmlpull.v1.XmlSerializer;



import android.app.Activity;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.util.Xml;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class PersianGulfSoccerActivity extends TabActivity  {
	ListView list;
	private List<Message> messages;
	private Object data = null;
	ProgressDialog pd;
	private int progressBarStatus = 0;
	private Handler progressBarHandler = new Handler();
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        myTabHost();

    	
        
        
    }
   
	private void myTabHost() {
		TabHost tabHost = getTabHost();
		 
        // Tab for Photos
        TabSpec newsspec = tabHost.newTabSpec("News");
        // setting Title and Icon for the Tab
        newsspec.setIndicator("Photos", getResources().getDrawable(R.drawable.arrow_right));
        Intent photosIntent = new Intent(this, News.class);
        newsspec.setContent(photosIntent);
        
        // Tab for table
        TabSpec tablespec = tabHost.newTabSpec("Table");
        tablespec.setIndicator("Videos", getResources().getDrawable(R.drawable.arrow_right));
        Intent tableIntent = new Intent(this,  Table.class);
        tablespec.setContent(tableIntent);
        
        // Tab for Songs
        TabSpec gamesspec = tabHost.newTabSpec("Games");
        gamesspec.setIndicator("Songs", getResources().getDrawable(R.drawable.arrow_right));
        Intent songsIntent = new Intent(this,  Games.class);
        gamesspec.setContent(songsIntent);
 
        // Tab for Videos
        TabSpec paperospec = tabHost.newTabSpec("NewsPaper");
        paperospec.setIndicator("Videos", getResources().getDrawable(R.drawable.arrow_right));
        Intent videosIntent = new Intent(this,  Paper.class);
        paperospec.setContent(videosIntent);
 
        
        // Adding all TabSpec to TabHost
        tabHost.addTab(newsspec); // Adding photos tab
        tabHost.addTab(tablespec); // Adding videos tab
        tabHost.addTab(gamesspec); // Adding songs tab
        tabHost.addTab(paperospec); // Adding videos tab
		
	}
	
	
	
}